home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
-
- # EODeveloper.post_install
-
- echo ""
-
- echo -n " Checking compiler ... "
- if ( ! -x /bin/cc ) then
- echo "Couldn't find /bin/cc. /bin/cc (in the DeveloperTools package) is required for building precompiled headers."
- exit 1
- endif
- echo "OK."
-
- set arch_type = `/usr/bin/arch`
- if ( ${arch_type} == "sparc" ) then
- set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa -arch sparc"
- else if ( ${arch_type} == "hppa" ) then
- set RC_CFLAGS = "-arch m68k -arch i386 -arch hppa"
- else
- set RC_CFLAGS = "-arch m68k -arch i386"
- endif
-
- set eoaccess = /NextDeveloper/Headers/eoaccess/eoaccess
- echo -n " Precompiling ${eoaccess}.h ... "
- /bin/cc -precomp ${eoaccess}.h -o ${eoaccess}.p ${RC_CFLAGS} || exit 1
- echo "OK."
-
- set eointerface = /NextDeveloper/Headers/eointerface/eointerface
- echo -n " Precompiling ${eointerface}.h ... "
- /bin/cc -precomp ${eointerface}.h -o ${eointerface}.p ${RC_CFLAGS} || exit 1
- echo "OK."
-
- echo -n " Indexing /NextDeveloper/Headers (this can take a while)... "
- chdir /NextDeveloper/Headers
- /bin/rm -f .index.store || exit 1
- /usr/bin/ixbuild -fs -LEnglish || exit 1
- echo "OK."
-
- echo -n " Indexing /NextDeveloper/Examples (this can take a while)... "
- chdir /NextDeveloper/Examples
- /bin/rm -f .index.store || exit 1
- /usr/bin/ixbuild -fs -LEnglish || exit 1
- echo "OK."
-
- echo -n " Indexing /NextLibrary/Documentation/NextDev (this can take a while)... "
- chdir /NextLibrary/Documentation/NextDev
- /bin/rm -f .index.store || exit 1
- /usr/bin/ixbuild -fs -LEnglish || exit 1
- echo "OK."
-
- echo " ... done."
- exit 0
-